extends layout

block content
  div(id='react-root' class="container-fluid wrapper" style="display: none;")!= react
  div(id='coverPage' class="f-dn") 
  
  script(src='/public/js/react-with-addons.min.js')
  script(src='/public/js/react-dom.min.js')
  script(src='/public/js/jquery-1.12.0.min.js')
  script(src="/public/js/spin.min.js")
  script(src='/public/js/bootstrap.min.js')
  script(src='/public/js/moment-with-locales.min.js')
  script(src='/public/js/js.cookie.js')
  //- asset rich text editor
  //- script(src='/public/ueditor/ueditor.config.js')
  //- script(src='/public/ueditor/ueditor.all.min.js')
  
  script(src='/public/js/amazeui.datetimepicker-se.min.js')
    
  script(type='text/javascript').
    window.__INITIAL_STATE__ = !{JSON.stringify(initialState)}
    window.__INITIAL_REDUX_STATE__ = !{JSON.stringify(initialReduxState)}
    $('#coverPage').click(function(e){
      e.preventDefault();
      e.stopProgress();
    })
    
  script(src='/assets/bundle.js')
  script.
    window.onbeforeunload = function(event) {
      Cookies.set('kerry_leave', (new Date).getTime(), { expires: 365, path: '' })
    }
    
  
